//
//  LSZWebViewVC.m
//  JKFuYinProject
//
//  Created by 九酷 on 2017/9/22.
//  Copyright © 2017年 LC. All rights reserved.
//

#import "LSZWebViewVC.h"

@interface LSZWebViewVC ()

@end

@implementation LSZWebViewVC
-(void)viewWillDisappear:(BOOL)animated
{
    if ([self.titleStr isEqualToString:@"我的福音值"]) {
        //让福音值同步
        [[NSNotificationCenter defaultCenter] postNotificationName:LOGINSUCCESSFUL object:self userInfo:nil];
    }
}
- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = [NSString stringWithFormat:@"%@",self.titleStr];
    
    WKWebView *webView = [[WKWebView alloc] initWithFrame:CGRectMake(0, 0, ScreenWidth, ScreenHeight-HOME_INDICATOR_HEIGHT)];
    [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:self.url]]];
    [self.view addSubview:webView];
}
@end
